<template>
  <div>
    login
    <div @click="loginHandler">登录</div>
  </div>
</template>

<script setup>
import { ref } from "vue";
const loginHandler = () => {
  console.log("loginHandler");
  uni.setStorageSync("cxl_token", "123456");
  uni.reLaunch({ url: "/pages/index/index" });
};
</script>

<style lang="less" scoped>
</style>